﻿#ifndef MAPPER_TESTDATABYTIME_H
#define MAPPER_TESTDATABYTIME_H

#include <qobject.h>
#include "ObjAutoInject.h"

class DataBaseConnector;
class Mapper_testDataByTime : public QObject,public ObjAutoInject
{
  Q_OBJECT
signals:
private://property
  const QString string_dataBaseName="test_data_by_time";
  const QString string_id="id";
  const QString string_rtt="rtt";
  const QString string_rtt_ave="rtt_ave";
  const QString string_bw="bw";
  const QString string_bw_max="bw_max";
  const QString string_now="now";
  const QString string_rto="rto";

private://dependency
  DataBaseConnector* dataBaseConnector=Q_NULLPTR;
public:
  explicit Mapper_testDataByTime();
  virtual ~Mapper_testDataByTime();
public:
  void record(int rtt, int rtt_ave, int bw, int bw_max, int rto);
public://geter and seter
  DataBaseConnector* getDataBaseConnector() const;
  Mapper_testDataByTime* setDataBaseConnector(DataBaseConnector* const dataBaseConnector);
public:
  virtual void objectAutoInjection(QHash<QString, QObject *> *objMap) override;
};

#endif // MAPPER_TESTDATABYTIME_H
